<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>
        // \w :表示数字，字母，下划线
        var reg = /^[0-9a-zA-Z]\w{5,17}@(qq|163|sina)\.(com|cn)$/
        console.log(reg.test('297416804@qq.com'))
    </script>
</body>

</html>